package com.sand.feign;

import com.sand.entity.shopping.shopping;
import com.sand.result.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("juao-shopping")
public interface shoppingFeign {

    //根据id查询商品s
    @PostMapping("/shopping/select")
    public ResponseResult<shopping> select(@RequestBody Integer id);


    //根据id查询商品
    @PostMapping("/shopping/getO")
    ResponseResult<shopping> getO(@RequestBody Integer shoppingid);



}





